<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>04</title>
</head>
<style>
    div{
        position: relative;
        width: 130px;
        height: 180px;
        border: 1px solid #333333;
        margin: 10px auto;
        overflow: hidden;   
    }
    img{
        position: absolute;
        animation: zou 1s steps(8)  infinite;
    }
    @keyframes zou{
       from{
           left: 0px;
       }
       to{
           left: -960px;
       }
    }
</style>
<body>
    <div>
        <img src="走路.png" alt="">
    </div>
</body>
</html>